<!--公共开始-->
<include file="./public" />
<!--公共结束-->
<title>7min理财</title>
<script type="text/javascript">
$(function() {
	mainHeight();
})
</script>

</head>

<body>
<!--头部+顶部开始-->
<include file="./top" />
<!--头部+顶部结束-->
<script type="text/javascript">
    $(document).ready(function() 
    {
        $(".btn-commend").click(function() 
        {
         //alert({$news['id']});
         ajaxPraiseAdd({$news['id']});
         
        });
    });
    
    
    function ajaxPraiseAdd(id)
    {
        $(function()
        {
           $.ajax({  
                    type: "post",  
                    url: "__URL__/ajaxPraiseAdd",  
                    dataType: 'json',
                    data: {id:id},
                    beforeSend: function(XMLHttpRequest){  
                    },  
                    error:function(){
                        alert('error');
                    },
                    success: function(json)
                    {
                        //alert('success!');
                        if(json.status == 1){
                            //alert(json.data);
                            $(".btn-count").text(json.data);
                            //window.location.href='testResult/'+json.data['type'] +'/' +json.data['score'] ;
                        } else
                        {
                            alert('wrong!');
                        }
                    }
                   
                   
                })
        });
    }
</script>

<!--主体开始-->
<div class="main-content">
    <div class="left70 left">
		<!--文章内容开始-->
        <div class="newsCont">
                    <h1 class="newsTitle">{$article['title']}
                        <div class="bdsharebuttonbox right">
                            <a href="#" class="bds_more" data-cmd="more"></a><a title="分享到微信" href="#" class="bds_weixin" data-cmd="weixin"></a><a title="分享到新浪微博" href="#" class="bds_tsina" data-cmd="tsina"></a><a title="分享到QQ空间" href="#" class="bds_qzone" data-cmd="qzone"></a><a title="分享到腾讯微博" href="#" class="bds_tqq" data-cmd="tqq"></a><a title="分享到人人网" href="#" class="bds_renren" data-cmd="renren"></a>
                        </div>
                    </h1>
                    <script type="text/javascript">
                    window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"1","bdSize":"16"},"share":{},"image":{"viewList":["weixin","tsina","qzone","tqq","renren"],"viewText":"分享到：","viewSize":"16"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["weixin","tsina","qzone","tqq","renren"]}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];
                    </script>
                    <div class="ep-info">
                        <span class="publishTime">{$article['timeshow']}&nbsp;&nbsp;&nbsp;&nbsp;作者:{$article['personshow']}</span>
                    </div>
                    <!--文章开始-->
                    <div class="newsText">
                        {$article['content']}
                        
                    </div>
                    <!--文章结束-->
                </div>            
		<!--文章内容结束-->
    </div>
    <div class="right30 right">
        <!--右菜单 开始-->
		<div class="panel">
        	<div class="panel-head"><a href="__URL__/knowledge/t/99"><i class="fa fa-newspaper-o text-danger"></i>&nbsp;新闻</a></div>
            <div class="panel-head"><i class="fa fa-magic text-danger"></i>&nbsp;知识中心</div>
            <div class="panel-body left_nav">
            	<ul>
                 	<?php foreach($type as $k => $v):?>
                 	<li <?php if ($article['typeid'] == $k) {?> class='on' <?php }?>><a href="__URL__/knowledge/t/<?php echo $k;?>"><i class="fa fa-angle-right"></i><?php echo $v;?></a></li>
                    <?php endforeach?>
                </ul>
            
            </div>
        </div>
        <!--右菜单 结束-->
    </div>
    <div class="clear"></div>
</div>
<!--主体结束-->
<!--底部开始-->
<include file="./foot" />
<!--底部结束-->
</body>
</html>
